{% set theme_config = attribute(config.themes, config.system.pages.theme) %}
<!DOCTYPE html>
<html lang="{{ grav.language.getActive ?: theme_config.default_lang }}">
  <head>
    {% include 'partials/head.html.twig' %}
  </head>

  <body class="{{ page.header.body_classes }}">

    {% block header %}
      <nav class="pure-menu pure-menu-horizontal">
        <a class="pure-menu-heading pure-menu-link" href="{{ base_url == '' ? '/' : base_url }}">
          {{ config.site.title }}
        </a>
        {% include 'partials/navigation.html.twig' %}
      </nav>
    {% endblock %}

    {% block body %}
      <main>
      {% block content %}{% endblock %}
      </main>
    {% endblock %}

    {% block footer %}
      <footer>
        <p>
        Theme by <a href="http://vktec.co.uk/">Samadi van Koten</a>.
        Servers sponsored by <a href="https://www.bytemark.co.uk/">Bytemark</a>.
        Proudly powered by <a href="https://getgrav.org/">Grav</a>.
        </p>
      </footer>
    {% endblock %}

    {% block bottom %}
      {{ assets.js('bottom') }}
    {% endblock %}

  </body>
</html>

